package com.example.demo.controller;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping
@RestController
public class SayHelloController {
    @RequestMapping("say")
    public JSONObject say(){
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("stats",200);
        jsonObject.put("message","ok");
        return jsonObject;
    }
}
